package com.xixi.core.rpc.fault.tolerant;

import com.xixi.core.rpc.model.RpcResponse;
import lombok.extern.slf4j.Slf4j;

import java.util.Map;

/**
 * @author: zxh
 * @date: 2024/8/27 16:44
 * @description: 静默处理异常 - 容错策略
 */
@Slf4j
public class FailSafeTolerantStrategy implements TolerantStrategy{
	@Override
	public RpcResponse doTolerant(Map<String, Object> context, Exception e) {
		log.info("静默处理异常", e);
		return new RpcResponse();
	}
}
